package week1;

public class Ex9 {
    public static void main(String[] args) {
        int a, b, c;
        loop:
        for (c = 3; c < 1000; ++c){
            for (b = 2; b < c; ++b){
                for (a = 1; a < b; ++a){
                    if (a + b + c == 1000 && a * a + b * b == c * c){
                        System.out.println(a * b * c);
                        break loop;
                    }
                }
            }
        }
    }
}
